﻿using System;
using System.Collections.Generic;
using System.Linq;
using PureMVC.Patterns;
using GameEngine.Model.Data;
using GameEngine.Libs;

namespace GameEngine.Model
{
    public class ResourceDataProxy : DataProxy, IResourceDataProxy
    {
        public ResourceDataProxy(IResourceVO vo)
            : base(IResourceDataProxyConstants.CreateDataProxyName(vo), vo)
        {
            
        }

        public IResourceVO VO
        {
            get { return Data as IResourceVO; }
        }

        public object Container {
            get { return VO.Container; }
            set { VO.Container = value; }
        }

        //public override string Serialize()
        //{
        //    return Serializer.Serialize(this);
        //}
   }
}
